<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    design
 * @package     base_default
 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php $_order = $this->getOrder() ?>
<div class="body">
<h1 class="print-header">
	Order Confirmation
</h1>
<p style="font-size: 10pt; line-height: 1.2em; margin: 0 0 9pt 0;">Hello <?php echo $_order->getCustomerName()?>,</p>
<p style="font-size: 10pt; line-height: 1.2em; margin: 0 0 9pt 0;">Many thanks for your order from GobblerShop.com!</p>
<p style="font-size: 10pt; line-height: 1.2em; margin: 0 0 9pt 0;">
	Your item(s) will reach you speedily the next day! If you have any questions about your order, please don't hesitate to email us at GobblerShop.com or call us at <span style="white-space: nowrap;">6285 0320</span>. We're available from Mondays to Fridays, 8am &ndash; 5pm. Here's your order confirmation number:
</p>
<h2 style="font-size: 10pt; font-weight: normal; margin: 0;">
	Your Order #<?php echo $_order->getRealOrderId()?> (placed on <?php echo $_order->getCreatedAtFormated('long')?>)
</h2>
<div class="col2-set">
    <?php if (!$_order->getIsVirtual()): ?>
    <div class="col-1" style="margin: 20pt 0 0;">
         <h2 style="font-size: 12pt; line-height: 1em; font-weight: bold;"><?php echo $this->__('Billing Address') ?></h2>
        <address style="font-size: 10pt; font-weight:normal;line-height:15px;margin:0;font-style: normal;"><?php echo $_order->getBillingAddress()->format('html') ?></address>
    </div>
    <div class="col-2" style="margin: 20pt 0 0;">
		<?php else: ?>
		<div class="col-1">
		<?php endif; ?>
			<h2 style="font-size: 12pt; line-height: 1em; font-weight: bold;"><?php echo $this->__('Shipping Address') ?></h2>
			<address style="font-size: 10pt; font-weight:normal;line-height:15px;margin:0;font-style: normal;"><?php echo $_order->getShippingAddress()->format('html') ?></address>
		</div>
	</div>
<div class="col2-set">
    <div class="col-1 payment" style="margin: 20pt 0 0;">
		<h2 style="font-size: 12pt; line-height: 1em; font-weight: bold;"><?php echo $this->__('Payment Method') ?></h2>
        <?php echo $this->getPaymentInfoHtml() ?>
    </div>
</div>

<table class="data-table print-table" id="my-orders-table" >
    <col />
    <col width="110" />
    <col width="110" />
    <col width="110" />
    <thead>
        <tr>
            <th class="a-left"><?php echo $this->__('Products') ?></th>           
            <th class="a-left"><?php echo $this->__('Price') ?></th>
            <th class="a-center"><?php echo $this->__('Qty') ?></th>
            <th class="a-right"><?php echo $this->__('Subtotal') ?></th>
        </tr>
    </thead>   
    <?php $_items = $_order->getItemsCollection(); ?>
    <?php $_count = $_items->count(); ?>
    <?php foreach ($_items as $_item): ?>
    <?php if ($_item->getParentItem()) continue; ?>
    <tbody>
        <?php echo $this->getItemHtml($_item) ?>
    </tbody>
        <?php endforeach; ?>
	<tfoot>
		<?php //echo $this->getChildHtml('order_totals') ?>
        <tr class="grand_total">
			<td class="a-right" colspan="3" style="padding: 26pt 0 0;">
				<strong>
					Grand Total:
				</strong>
			</td>
			<td class="a-right" style="padding: 26pt 0 0;">
				<strong>
					<?php echo $_order->formatPrice($_order->getGrandTotal())?>
				</strong>
			</td>
		</tr>
    </tfoot>
</table>
<script type="text/javascript">decorateTable('my-orders-table', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
<script type="text/javascript">window.print();</script>
<div style="text-align:center;margin-top:20pt;" class="monster-saving">
	<img alt="monster" src="<?php echo $this->getSkinUrl('images/email-footer.png')?>">
</div>
<p class="print-footer" style="font-size:9pt;margin-top:30pt;line-height:15pt;text-align:center;"><span style="float:left;width:100%;">GOBBLER PTE LTD (UEN: 201021339R) </span>
600 Sin Ming Avenue, Level 2 CityCab Building, S'pore 575733 | Tel: +65 6285 0320 | Fax: +65 6281 3267 | www.gobblershop.com</p>
</div>